import java.util.Random;
import java.util.Scanner;

public class MyName {
    public static void main(String[] args) {

        Scanner d = new Scanner(System.in);
        while (true) {
            System.out.println("请输入你要猜的值    1=石头    2=布    3=石头");
            int a = d.nextInt();

            Random r = new Random();
            int i = r.nextInt(3)+1;

            String b = "";
            String o = "";

            switch(a) {
                case 1:
                    b = "石头";
                    break;
                case 2:
                    b= "剪刀";
                    break;
                case 3:
                    b= "布";
                    break;
            }

            switch(i) {
                case 1:
                    o = "石头";
                    break;
                case 2:
                    o = "剪刀";
                    break;
                case 3:
                    o = "布";
                    break;
            }

            if(a==1 && i==2 || a==2 && i==3 || a==3 && i==1 ) {
                System.out.println("你赢了你出的是"+b+"电脑出的是"+o);
            }

            if(a==1 && i==3 || a==2 && i==1 || i==3 && a==1 ) {
                System.out.println("你输了你出的是"+b+"电脑出的是"+o);
            }

            if(a==1 && i==1 || a==2 && i==2 || i==3 && a==3) {
                System.out.println("平局了你出的是"+b+"电脑出的是"+o);
            }

        }
    }
}